package edu.zut.enumerate;

public class User {

    private String name;
    //为了限制数据的范围  可以使用枚举进行约束
    private Gender sex;
    private int age;
    //可以使用枚举进行约束
    private Edu education;

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", sex=" + sex +
                ", age=" + age +
                ", education=" + education +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Gender getSex() {
        return sex;
    }

    public void setSex(Gender sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Edu getEducation() {
        return education;
    }

    public void setEducation(Edu education) {
        this.education = education;
    }
}
